package com.gwl.circle.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Author 高万里
 */
@Data
@TableName("t_user_detail")
public class UserDetail {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private Integer grade;

    private Integer grow;

    private String imgUrl;

    private Date birthday;

    private String sex;

    private Date ctime;

    public UserDetail(Integer uid, Integer grade, Integer grow) {
        this.uid = uid;
        this.grade = grade;
        this.grow = grow;
        this.ctime = new Date();
    }
}
